package com.itheima.service;

import com.itheima.common.PageInfo;
import com.itheima.pojo.Employee;
import com.itheima.vo.EmployeeVo;

public interface EmployeeService {



    EmployeeVo login(String username, String password);

    void clearToken(String token);

    EmployeeVo getById(String id);

    //分页    下面的<Employee>是因为PageInfo自定义了一个泛型<T>
    PageInfo<Employee> page(String name, Integer page, Integer pageSize);

    boolean addEmployee(Employee employee);

    boolean updateEmployee(Employee employee);
}
